#include "StdAfx.h"
#include "GreyTextHeaderUI.h"

CGreyTextHeaderUI::CGreyTextHeaderUI(void)
{
}

CGreyTextHeaderUI::~CGreyTextHeaderUI(void)
{
}

LPCTSTR CGreyTextHeaderUI::GetClass() const
{
	return _T("GreyTextHeaderUI");
}

SIZE CGreyTextHeaderUI::EstimateSize(SIZE /*szAvailable*/)
{
	return CStdSize(0, 12 + m_pManager->GetThemeFontInfo(UIFONT_BOLD).tmHeight + 12);
}

void CGreyTextHeaderUI::DoPaint(HDC hDC, const RECT& /*rcPaint*/)
{
	COLORREF clrDarkText = m_pManager->GetThemeColor(UICOLOR_DIALOG_TEXT_DARK);
	RECT rcLine = { m_rcItem.left, m_rcItem.bottom - 6, m_rcItem.right, m_rcItem.bottom - 5 };
	CBlueRenderEngineUI::DoFillRect(hDC, m_pManager, rcLine, UICOLOR_DIALOG_TEXT_DARK);
	CBlueRenderEngineUI::DoPaintQuickText(hDC, m_pManager, m_rcItem, m_sText, UICOLOR_DIALOG_TEXT_DARK, UIFONT_BOLD, DT_SINGLELINE);
}
